package com.hssy.union.unionproduct.controller;

import com.hssy.union.unionproduct.feign.MemberFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/testProduct")
public class TestFeignController {
    @Autowired
    private MemberFeignService memberFeignService;

    @GetMapping("hello")
    public String hello(){
        String s = memberFeignService.forFeignTest();

        return "product微服务远程调用到了member的接口*****:  "+s;
    }
}
